Skip to main content

yTextbox

Description

The yTextbox component serves as a powerful tool primarily designed for displaying longer text information within your application. It's an element that allows only static content. The yTextbox basically can be used to store text information that goes beyond the context of a simple label.

Basic Structure

In the following the basic structure of the yTextbox shall be explained. For the general structure of a yComponent please visit the

YBase-components basic-structure.
BasicStructure

The yTextbox as seen above contains nothing but text as the content.

Content

The content contains the actual text itself. It can be seen as an equivalent to the label of the

yLabel. You can find further explanation at the [Content Property](#style--content).

Properties

Through its various properties the yTextbox can be configured to suit your needs. The display below provides you with an overview of all the yTextbox properties.

Properties can be changed directly through three methods:

  • Inside the Toolbar, which is positioned in your workarea next to your component where you need it. It shows the most important properties, thus providing a fast and efficient way to configure your component in the most basic way.
  • It may also occur in the Toolbar Extension, which is a seamless extension accesible as a dropdown item of the Toolbar. It extends the functionality of the Toolbar by providing advanced pickers for most used properties.
  • Inside the Detail Panel, which is located in the righthand drawer. Every property of a component can be configured here.
METAread more
--y-textbox__component-id

The identifier of the component that is unique within a page.

--y-textbox__component-type

The type of the component. For this component it is -textbox.

--y-textbox__name

The custom name of the component. It serves for better identification of the component.

--y-textbox__version

The custom version of the Textbox-component. This can be used to ensure that all components work well together.

--y-textbox__core-theme

The CoreTheme, which will be apllied to the Textbox. For further information on themes visit the themes page.

--y-textbox__sub-theme

The subtheme subordinated to the previously specified CoreTheme, which will be apllied to the Textbox. For further information on themes visit the themes page.

--y-textbox__group-theme

The group theme is a further variation of the subtheme which is specified especially for variations of a component inside the subtheme. For further information on themes visit the Theme-Manager page.

DISPLAYread more
--y-textbox__display

This property specifies the display behavior of the component. This can be be set to:

  • none
  • block
  • flex
  • inline
--y-textbox__position

This property specifies the type of positioning method used for the component. This can be be set to:

  • static
  • relative
  • absolute
  • sticky
  • fixed
--y-textbox__visible

This property can toggle the visibility of the component. The two modes are completely hidden and fully shown.

SIZEread more
--y-textbox__min-width

The minimum value for the width of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
--y-textbox__min-height

The minimum value for the height of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
--y-textbox__width

The value for the width of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
  • auto
--y-textbox__height

The value for the height of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
  • auto
--y-textbox__max-width

The maximum value for the width of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
  • none
--y-textbox__max-height

The maximum value for the height of the component. This can be set in:

  • px
  • pt
  • em
  • vw
  • vh
  • %
  • none
--y-textbox__flex

The flex property sets the length on flexible items. This sets the value in n-fold shares extrapolated to all other components with the flex display within the same container.

PLACEMENTread more
--y-textbox__margin-top

This property creates a space around the component, outside of the top border. This can be set in percent or pixels.

--y-textbox__margin-right

This property creates a space around the component, outside of the right border. This can be set in percent or pixels.

--y-textbox__margin-bottom

This property creates a space around the component, outside of the bottom border. This can be set in percent or pixels.

--y-textbox__margin-left

This property creates a space around the component, outside of the left border. This can be set in percent or pixels.

--y-textbox__padding-top

This property creates a space within the component, inside of the top border. This can be set in percent or pixels.

--y-textbox__padding-right

This property creates a space within the component, inside of the right border. This can be set in percent or pixels.

--y-textbox__padding-bottom

This property creates a space within the component, inside of the bottom border. This can be set in percent or pixels.

--y-textbox__padding-left

This property creates a space within the component, inside of the top border. This can be set in percent or pixels.

Usage

In this section you'll find a collection of application scenarios and examples that illustrate how to leverage the yTextbox in ways that deviate from its standard behavior, as defined by yBase. This section aims to inspire and guide you through various possibilities, helping you to implement more complex or unique functionalities tailored to your specific needs. General properties that are universally applicable can be found in the yBase usage section.

Variations

Textbox Elevated
Textbox Flat
Textbox Outlined
Textbox Rounded
Textbox Plain
genericsizeminWidth200px
genericsizemaxWidth200px
genericsizeheight100px
stylebackgroundbgColor__normal#44ddbb
styleshadowboxShadow__normal0 3px 6px 0 rgba(16, 18, 24, 0.2)
styleborderborderRadius8px
stylelabellabel__fontColor__normal#FFFFFF
stylecontentvalue'<p>This is an example text:</p><p></p><ol><li><p>Elevated</p></li></ol>'

Special Variations

Textbox Tags
Textbox Links
Textbox Headings
genericsizeminWidth200px
genericsizemaxWidth200px
genericsizeheight100px
stylecontentvalue<p><strong>Hello world!</strong> <i><a href='www.vectorsoft.de'>Click here :-)<a></i> </p>

Special Picker

Rich text editor

This special editor helps creating a content of your liking. The principle can be compared to a common text editor.

@Note hier Bild einfügen

The editor can be activated by double clicking the textbox in the @Note insert Link Designer. Now the textbox turns from simply displaying the content to an editor mode. In this mode you can simply create, edit and delete content.

The Toolbar hereby offers several options:

  1. Undo/Redo
  2. Changing fonts
  3. Changing font styles
  4. Creating link
  5. Inserting ordered and unordered lists
  6. Updating font align
  7. Creating different headings
  8. Colorizing the background of certain text parts
  9. A rubber for resetting and clearing the style of text parts
  10. A reset to clear the complete content